package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IHomePageFragmentModel;
import com.wgts.wgts.netmodle.AppOkHttpClient;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.NetWorkConstant;
import com.wgts.wgts.netmodle.NetWorkFactory;
import com.wgts.wgts.netmodle.req.ProductClassRequest;
import com.wgts.wgts.netmodle.resp.ProductClassEntity;
import com.wgts.wgts.netmodle.resp.UserInfoEntity;
import com.wgts.wgts.netmodle.resp.VipMessageEntity;
import com.wgts.wgts.tools.AppInfor;

import java.util.List;

public class HomePageFragmentModel implements IHomePageFragmentModel {

    private NetService netService;

    public HomePageFragmentModel(NetService netService) {
        this.netService = netService;
    }


    @Override
    public void initProductClass(HttpResultSubscriber<List<ProductClassEntity>> subscriber) {
        ProductClassRequest productClassRequest = new ProductClassRequest();
        productClassRequest.parentId = "";
        productClassRequest.scene = "";
        netService.productClass(productClassRequest, subscriber);

    }

    @Override
    public void userInfo(HttpResultSubscriber<UserInfoEntity> subscriber) {
        netService.userInfo(subscriber);
    }

    @Override
    public void vipMessage(HttpResultSubscriber<List<VipMessageEntity>> subscriber) {
        netService.vipMessage(subscriber);
    }

}
